interface SortProps {
  time: string;
  size: string;
  owner: string;
  name: string;
}
interface FolderProps {
  checked: boolean;
  mtime: Date;
  type: string;
  size: number;
  name: string;
  fullPath: string;
  parentPath: string;
  ext: string;
  icon: string;
}
interface Dictionary {
  [key: string]: string;
}
interface TabsProps {
  label: string;
  name: string;
  content: string;
  ext: string;
  path: string;
  // 是否新文件，用于判断是否需要覆盖保存
  isNewFile: boolean;
}

interface NetworkProps {
  address: string;
  netmask: string;
  family: string;
  scopeid?: number;
  mac: string;
  internal: boolean;
  cidr: string;
}

interface NetworkListProps {
  [key: string]: NetworkProps[];
}

export type {
  Dictionary,
  FolderProps,
  NetworkListProps,
  NetworkProps,
  SortProps,
  TabsProps,
};
